package io.renren.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.dao.ExperimentDao;
import io.renren.entity.ExperimentEntity;
import io.renren.service.ExperimentService;
import io.renren.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("experimentService")
public class ExperimentServiceImpl extends ServiceImpl<ExperimentDao, ExperimentEntity> implements ExperimentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ExperimentEntity> page = this.page(
                new Query<ExperimentEntity>().getPage(params),
                new QueryWrapper<ExperimentEntity>()
        );

        return new PageUtils(page);
    }

}
